//
//  MessageService.h
//  homeland
//
//  Created by SunShine on 13-11-5.
//  Copyright (c) 2013年 xzysun. All rights reserved.
//

#import "CommonDataService.h"
#import "MessageItem.h"
#import "TZGGListItem.h"
#import "WYJDListItem.h"
#import "QZXXListItem.h"
#import "ZCZXListItem.h"
#import "TZGGDetailItem.h"
//我的消息列表
@protocol LoadNoticeDelegate;
@interface MessageService : CommonDataService
{
    
}
-(void)loadMessageWYJD:(NSString *)dataId;
-(void)loadMessage;
-(void)loadMessageList:(void (^)(NSArray *data))success Failure:(void (^)(NSString *msg))failure;
-(void)queryQzxxInfo:(NSString *)keySLIDOrNil withName:(NSString*)keyName Success:(void (^)(NSDictionary*json))success Failure:(void (^)(NSString *msg))failure;
-(void)loadMessageCount:(void (^)(NSString *count))success;
-(void)loadMessageListWithFldm:(NSString *)fldm;

@property (assign, nonatomic) id<LoadNoticeDelegate> noticeDelegate;
-(void)loadNoticeForID:(NSString *)Id ;


-(void)markMessageReadForType:(NSString *)type AndID:(NSString *)Id;
//查询反馈意见
-(void)getFeelback:(NSString *)dataId Success:(void (^)(NSDictionary *data))success Failure:(void (^)(NSString *msg))failure;
//删除数据
-(void)deleteMessageById:(NSString *)dataId Success:(void (^)(Boolean *flag))success Failure:(void (^)(NSString *msg))failure;
//我的消息列表
-(void)queryMyMessageList:(void (^)(NSArray *data))success Failure:(void (^)(NSString *msg))failure;

@end

@protocol LoadNoticeDelegate <NSObject>
//回调函数
-(void)loadNoticeSuccess:(id)data;//tzgg
-(void)loadWYJDSuccess:(id)data;//wyjd
-(void)loadNoticeFail:(NSString *)msg;



@end